package com.lesson17.model;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

@JacksonXmlRootElement(localName="student")
public class StudentModel {
	
	private int id;
	
	private String userName;
	
	private int age;
	
	private String className;

	@JacksonXmlProperty(localName="id")
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@JacksonXmlProperty(localName="userName")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@JacksonXmlProperty(localName="age")
	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@JacksonXmlProperty(localName="className")
	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}
		
	

}
